package com.xge.common_libary.api

import com.xge.common_libary.bean.CaiPuListBean
import com.xge.common_libary.bean.CaiPuListInfoBean
import com.xge.common_libary.http.BaseResponse
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query
import retrofit2.http.QueryMap

interface ApiService {
    //菜谱分类
    @GET("recipe/class")
    suspend fun getCaiPuList(
    ): BaseResponse<List<CaiPuListBean>>

    //菜谱列表
    @GET("recipe/byclass")
    suspend fun getCaiPuListInfo(
        @Query("classid") classid: Int?,
        @Query("start") start: Int,
        @Query("num") num: String,
    ): BaseResponse<CaiPuListInfoBean>

    //搜索菜谱
    @GET("recipe/search")
    suspend fun searchCpList(
        @Query("keyword") keyword: String,
        @Query("start") start: Int,
        @Query("num") num: String,
    ): BaseResponse<CaiPuListInfoBean>

}